<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>友情链接管理页</title> 
    
    <!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
 
    <link rel="shortcut icon" href="/favicon.ico"> 
    <link href="/public/admin/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/public/admin/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/public/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="/public/admin/css/animate.css" rel="stylesheet">
    <link href="/public/admin/css/style.css?v=4.0.0" rel="stylesheet">
    <link href="/public/admin/css/ourstyle.css?v=4.0.0" rel="stylesheet">
</head>

<body class="fixed-sidebar full-height-layout gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>友情链接内容</h5>
                </div>
                <div class="ibox-content">
                    <div class="row">
                            <form action="{:url('Article/articleHandle')}" method="post" id="linkConFrom" onclick="return false;" class="form-horizontal">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">所属分类：</label>
                                    <div class="col-sm-8">
                                        <select class="form-control" name="kid">
                                        {foreach name="cat_select" item="cat"}
                                            {if $info['kid'] == $cat['id']}
                                            <option value="{$cat.id}" selected="selected">{$cat.kind_name}</option>
                                            {else/}
                                            <option value="{$cat.id}">{$cat.kind_name}</option>
                                            {/if}
                                        {/foreach}
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">友情链接标题：</label>
                                    <div class="col-sm-8">
                                        <input class="configInput form-control" name="title" minlength="2" type="text" value="{$info.title}" required="" aria-required="true" placeholder="填写友情链接标题">
                                    </div>
                                </div>  
                                <!-- <div class="form-group">
                                    <label class="col-sm-2 control-label">站点LOGO：</label>
                                    <div class="col-sm-8">
                                        <div class="input-group">
                                            <input type="text" class="form-control" name="logo" id="logo" value="{$info.logo}"> <span class="input-group-btn"> <button type="button" class="btn btn-primary" onclick="BrowseServer('logo');">选择图片</button> </span>
                                        </div>
                                    </div>
                                </div> -->
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">站点URL：</label>
                                    <div class="col-sm-8">
                                        <input class="configInput form-control" name="link_url" minlength="2" type="text" value="{$info.link_url}" required="" aria-required="true" placeholder="填写站点URL">
                                    </div>
                                </div>  
                                <!-- <div class="form-group">
                                    <label class="col-sm-2 control-label">其他属性：</label>
                                    <div class="col-sm-8">
                                        <div class="col-sm-10">
                                            <label class="checkbox-inline i-checks">
                                                <input type="checkbox" name="is_hide" value="1">禁用友情链接</label> 
                                        </div>  
                                    </div>
                                </div> -->
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">序号：</label>
                                    <div class="col-sm-8">
                                        <input class="configInput form-control" name="sort_order" type="text" class="configInput" value="{$info.sort_order}">
                                    </div>
                                </div> 
                                <!-- <div class="form-group">
                                    <label class="col-sm-2 control-label">友情链接简介：</label>
                                    <div class="col-sm-8">
                                        <input class="configInput form-control" name="link_info" minlength="2" type="text" value="{$info.link_info}" required="" aria-required="true" placeholder="填写友情链接简介">
                                    </div>
                                </div> -->
                                   

                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <div class="col-sm-4 col-sm-offset-2">
                                        <input type="hidden" name="act" value="{$act}"> 
                                        <input type="hidden" name="id" value="{$info.id}">
                                        <button class="btn btn-primary" onclick="ajax_submit_form('linkConFrom','{:url('Other/linkHandle')}')" type="submit">保存</button>
                                    </div>
                                </div> 
                    	    </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

    <!-- 全局js -->
    <!-- <script src="/public/admin/js/jquery.min.js?v=2.1.4"></script> -->
    <script src="/public/admin/js/jQuery-2.1.4.min.js"></script>
    <script src="/public/admin/js/bootstrap.min.js?v=3.3.5"></script>
	<!-- 自定义js -->
    <script src="/public/admin/js/content.js?v=1.0.0"></script>
    <script src="/public/admin/js/plugins/layer/layer.min.js"></script>
    <script src="/public/admin/plugins/laydate/laydate.js"></script>
    <script src="/public/admin/js/article.js"></script> 
    <!-- CKeditor -->
    <script src="/public/admin/plugins/ckeditor/ckeditor.js"></script>
    <script src="/public/admin/plugins/ckfinder/ckfinder.js"></script>  
    <!-- iCheck -->
    <script src="/public/admin/js/plugins/iCheck/icheck.min.js"></script>
    <script> 

        $(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            }); 
        }) 

    </script>

</body>
</html>
